40b93ed01d0b310313315d06074c6d5ed08bceef,rheem-core/src/main/java/org/qcri/rheem/core/platform/PartialExecution.java,PartialExecution,fromJson,#JSONObject#,166

Before Change


                jsonObject.optLong("upperCost", -1L), // Default value for backwards compatibility.
                JsonSerializables.deserializeAllAsList(jsonObject.getJSONArray("executions"), OperatorExecution.class)
        );
        final JSONArray platforms = jsonObject.optJSONArray("initPlatforms");
        if (platforms != null) {
            for (Object platform : platforms) {
                partialExecution.addInitializedPlatform(Platform.load((String) platform));

After Change


        final Collection<PartialExecution.AtomicExecutionGroup> atomicExecutionGroups =
                JsonSerializables.deserializeAllAsList(jsonObject.getJSONArray("execGroups"), AtomicExecutionGroup.class);
        final Collection<Platform> initializedPlatforms =
                JsonSerializables.deserializeAllAsList(jsonObject.optJSONArray("initPlatforms"), Platform.jsonSerializer);
        final PartialExecution partialExecution = new PartialExecution(
                atomicExecutionGroups, measuredExecutionTime, lowerCost, uppserCost
        );